package com.h3c.ptability.config.proConfig;

import com.h3c.ptability.config.properties.PtAbilityEmailProperties;
import com.h3c.ptability.config.properties.SendEmailProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chenyifan
 * @date 2022/6/14 10:59
 */
@Configuration
public class SendEmailPropertiesConfig {

    @Bean("baseSendEmail")
    @ConfigurationProperties(prefix = "pt.email.smtp")
    public PtAbilityEmailProperties getProperties() {
        return new PtAbilityEmailProperties();
    }
}
